let db=require('../../sql/common')

 exports.getList=function(req,res){
    let query = req.query.tagValue
    let sql=`SELECT * FROM list WHERE tagValue='${query}' ORDER BY id DESC`
    db.query(sql,(err,ressql)=>{
        if(err){
            return res.send({code:204,msg:'获取文章成功'})
         }
        return res.send({code:200,msg:'获取文章成功',data:ressql})
        
    })
    
    
}

